<template>
  <div>
    <a @click="toHeima('真不错',$event)" href="https://www.itheima.com">去黑马</a>
  </div>
</template>

<script>
export default {


  data() {
    return {
      
    };
  },

  methods: {
    toHeima(msg,e) {
      console.log('被点了：',msg);
      e.preventDefault()
    }
  },
};
</script>

<style>

</style>